#ifndef LINE_SEG_H
#define LINE_SEG_H

#include "Vec3.h"

namespace Engine
{
	class LineSeg
	{
		private:
			Vec3 m_start;
			Vec3 m_end;

		public:
			LineSeg(){}
			LineSeg(const Vec3& start, const Vec3& end);

			void SetPoints(const Vec3& start, const Vec3& end);

			const Vec3& GetStart() const {return m_start;}
			const Vec3& GetEnd() const {return m_end;}
			Vec3 GetPoint(float t);
			float SqrDistToPoint(const Vec3& point);
	};
}

#endif